package com.yshow.modules.app.controller;

import com.yshow.common.annotation.MyAnnotation;
import com.yshow.common.annotation.SysLog;
//import com.yshow.modules.app.dao.EsBlogRepository;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: some desc
 * @author: ruoan
 * @date: 2020/10/5 13:21
 */
@RestController
@RequestMapping("/index")
@Api("测试接口")
@Slf4j
public class IndexController {
    //@Autowired
    //private EsBlogRepository esBlogRepository;

    @GetMapping("/te")
    public void index(){
        log.info("sssss");
    }


    @GetMapping("/ggg")
    //@MyAnnotation
    @SysLog(value = "进入getSo()方法")
    public void getSo(){
        log.info("进入getSo()方法");
    }


    @GetMapping("/gggg")
    //@MyAnnotation
    @SysLog(value = "进入getSo()方法")
    public void getSoo(){
        log.info("进入getSoo()方法");
        //log.info(String.valueOf(esBlogRepository));
    }


}
